package com.open.source.ams;

import com.open.source.ams.annotation.ExcelEntity;
import com.open.source.ams.annotation.ExcelEntityProperty;
import com.open.source.ams.model.AbsImportExcelModel;
import com.open.source.demo.Animal;
import com.open.source.demo.HighAnimal;
import java.math.BigDecimal;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author ZonLen since on 2022/3/26 上午10:06
 */
@ExcelEntity(startRowIdx = 2)
public class DemoImportModel extends AbsImportExcelModel {

  @ExcelEntityProperty(index = 0, name = "a")
  @NotBlank(message = "a")
  private String a;
  @ExcelEntityProperty(index = 1, name = "b")
  @Size(min = 4, max = 100, message = "b")
  @NotBlank(message = "b")
  private String b;
  @ExcelEntityProperty(index = 2, name = "c")
  @NotNull(message = "c")
  private Long c;
  @ExcelEntityProperty(index = 3, name = "d")
  @NotNull(message = "d")
  private Date d;
  @ExcelEntityProperty(index = 4, name = "e")
  @NotNull(message = "e")
  private BigDecimal e;


}
